<?xml version="1.0" encoding="UTF-8"?>
<!--
/// 
/// MaDAson - Toolkit for Model Driven Software Development
///
/// Copyright [2006] Marcus Lankenau
/// 
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///  
///     http://www.apache.org/licenses/LICENSE-2.0
///  
/// Unless required by applicable law or agreed to in writing, software
/// distributed under the License is distributed on an "AS IS" BASIS,
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/// See the License for the specific language governing permissions and
/// limitations under the License.
/// 
-->
<%@ Page Language="C#" %>
<%@ Import Namespace="Madason.MetaModel" %>
<%@ Import Namespace="Madason.MetaModel.Solution" %>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{<%= Project.VisualStudioGuid %>}</ProjectGuid>
    <OutputType><%= Project.VisualStudioOutputType %></OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace><%= Project.FullName %></RootNamespace>
    <AssemblyName><%= Project.FullName %></AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\build</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>..\build</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
<% if (Project.VisualStudioProjectReferences.Count > 0) { %>  
  <ItemGroup>
<% foreach (Project depprj in Project.VisualStudioProjectReferences) { %>
    <ProjectReference Include="..\<%= depprj.FullName %>\<%= depprj.FullName %>.csproj">
      <Project>{<%= depprj.VisualStudioGuid %>}</Project>
      <Name><%= depprj.FullName %></Name>
    </ProjectReference>
<% } %>
  </ItemGroup>
<% } %> 
  <ItemGroup>
<% foreach (string reference in Project.GacReferences) { %>  
    <Reference Include="<%= reference %>" />
<% } %>    
 </ItemGroup>
  <ItemGroup>
<% foreach (string filename in Project.ProjectFiles) { %>  
    <Compile Include="<%= filename %>" />
<%} %>    
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

<script runat="server">
	private Project solution;

	public Project Project
	{
		get { return solution; }
		set { solution = value; }
	}		
</script>